class User < ActiveRecord::Base
  include PermissionableAttributes
  
  has_many :attribute_settings, :class_name => "UserAttributeSetting"
  
  has_attributes_with_permissions do |config|
      config.use_attributes_defined_in(UserAttribute, "enumeration")
      config.use_permissions_defined_in(PermissionType)
      config.store_permissions_in(UserAttributeSetting, :as => "attribute_settings")
  end

  
end
